package easyjava.hibernate.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="course_offered")
@Entity
public class CourseOffered {
	   @Id
	   @Column(name="id")
       private int id;
	   @Column(name="class_capacity")
       private int classCapcity;
       @Column(name="class_remain")
       private int classRemain;
       @Column(name="class_time")
       private String classTime;
       @Column(name="teacher_id")
       private int teacherId;
       @Column(name="course_template_id")
       private int courseTemplateId;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getClassCapcity() {
		return classCapcity;
	}
	public void setClassCapcity(int classCapcity) {
		this.classCapcity = classCapcity;
	}
	public int getClassRemain() {
		return classRemain;
	}
	public void setClassRemain(int classRemain) {
		this.classRemain = classRemain;
	}
	public String getClassTime() {
		return classTime;
	}
	public void setClassTime(String classTime) {
		this.classTime = classTime;
	}
	public int getTeacherId() {
		return teacherId;
	}
	public void setTeacherId(int teacherId) {
		this.teacherId = teacherId;
	}
	public int getCourseTemplateId() {
		return courseTemplateId;
	}
	public void setCourseTemplateId(int courseTemplateId) {
		this.courseTemplateId = courseTemplateId;
	}
	@Override
	public String toString() {
		return "CourseOffered [id=" + id + ", classCapcity=" + classCapcity + ", classRemain=" + classRemain
				+ ", classTime=" + classTime + ", teacherId=" + teacherId + ", courseTemplateId=" + courseTemplateId
				+ "]";
	}
       
       
}
